package com.joker.service;

import com.joker.pojo.Type;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @Author JokerKS
 * @Date 2021/12/06 15:38
 * @Version 1.0
 */
public interface TypeService {
	Type saveType(Type type);

	Type getType(Long id);

	Type getTypeByName(String name);

	Page<Type> listType(Pageable pageable);

	List<Type> listType();

	List<Type> listTypeTop(Integer size);

	Type updateType(Long id, Type type);

	void deleteType(Long id);
}
